package org.alis.smallcc.designpatterns.behavior.proxy;

import org.alis.smallcc.designpatterns.behavior.proxy.dynamicproxy.GenerateHandler;

public class OrderServerImpl implements OrderService {
	private OrderDao dao;
	@Override
	public int save(Order order) {
		System.out.println("到服务层了");
		dao = new GenerateHandler(OrderDaoImpl.class).bind();
		return dao.save(order);
	}

}
